import React, { FC } from 'react';
import LogReg from '../../components/log-reg';
import { useHistory } from 'react-router-dom';

// 用户登陆注册页
const UserLogReg: FC = props => {
    const history = useHistory();
    
    const login = () => {
        history.push("/userLogReg/userLogin");
    }
    const register = () => {
        history.push("/userLogReg/userRegistration");
    }

    return <LogReg login={login} register={register} regBtnValue="用户注册" centerText="用 户 中 心" />
}
export default UserLogReg;
